package com.one.consumer.reserve.model.item;

import com.one.common.model.http.NetConstant;
import com.one.common.view.multitytype.adapter.BaseItem;

/**
 * author ：zhulunjun
 * email  ：zhulunjun@qq.com
 * date   ：2018/10/30 10:25 PM
 * description ：维修区域
 **/
public class AreaItem extends BaseItem {
    private int parts_id;//

    private String parts_name;//零部件名称

    private String parts_img;//零部件图标

    private String parts_state;//0:关闭 1:开启

    private String parent_id;//父id  -1代表第一层

    private String is_hava;//是否拥有下级 0:没有  其他有

    private String is_delete;//

    private String create_time;//

    private String update_time;//

    public int getParts_id() {
        return parts_id;
    }

    public void setParts_id(int parts_id) {
        this.parts_id = parts_id;
    }

    public String getParts_name() {
        return parts_name;
    }

    public void setParts_name(String parts_name) {
        this.parts_name = parts_name;
    }

    public String getParts_img() {
        if(parts_img.startsWith("http")) {
            return parts_img;
        } else {
            return NetConstant.IMG_HOST+parts_img;
        }
    }

    public void setParts_img(String parts_img) {
        this.parts_img = parts_img;
    }

    public String getParts_state() {
        return parts_state;
    }

    public void setParts_state(String parts_state) {
        this.parts_state = parts_state;
    }

    public String getParent_id() {
        return parent_id;
    }

    public void setParent_id(String parent_id) {
        this.parent_id = parent_id;
    }

    public String getIs_hava() {
        return is_hava;
    }

    public void setIs_hava(String is_hava) {
        this.is_hava = is_hava;
    }

    public String getIs_delete() {
        return is_delete;
    }

    public void setIs_delete(String is_delete) {
        this.is_delete = is_delete;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }
}
